<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字围绕浮动元素</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .box{
            width: 300px;
            height: 70px;
            background-color: aqua;
            margin:0 auto;
            padding: 5px;
        }
        .pic {
            float: left;
            width: 120px;
            height: 60px;
            margin-right: 5px;
        }
        .pic img {
            width: 100%;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="pic">
            <img src="img/日本战败.jpg" alt="">
        </div>
        <p>哆啦A梦开心地说：日本战败了！8月15日，对中国来说是个特殊的日子...</p> 
    </div>
    <img src="img/文字围绕浮动元素.png" alt="">
</body>
</html>